package dingding.dao;

import java.util.ArrayList;

public class configInformation {
    private String file ="";
    private String plcNAME="";
    private String[] plcLIST={};
    private String classNAME ="";
    private String[] classlist ={};
    private String faultNAME ="";
    private String[] faultlist ={};
    private String secret = "";
    private String webhook ="";
    private ArrayList<String> fault1 = new ArrayList<>();
    private ArrayList<String> reset1 = new ArrayList<>();
    private boolean onePass =false;
    private String repon = null;
    private String encoding = "UTF-8";
    private String alarmExceptionErr = null;
    private String dingdingExceptionErr = null;
    public  configInformation(){

    }

    public configInformation(String file, String plcNAME, String[] plcLIST, String classNAME, String[] classlist, String faultNAME, String[] faultlist, String secret, String webhook) {
        this.file = file;
        this.plcNAME = plcNAME;
        this.plcLIST = plcLIST;
        this.classNAME = classNAME;
        this.classlist = classlist;
        this.faultNAME = faultNAME;
        this.faultlist = faultlist;
        this.secret = secret;
        this.webhook = webhook;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getPlcNAME() {
        return plcNAME;
    }

    public void setPlcNAME(String plcNAME) {
        this.plcNAME = plcNAME;
    }

    public String getClassNAME() {
        return classNAME;
    }

    public void setClassNAME(String classNAME) {
        this.classNAME = classNAME;
    }

    public String getFaultNAME() {
        return faultNAME;
    }

    public void setFaultNAME(String faultNAME) {
        this.faultNAME = faultNAME;
    }

    public String[] getFaultlist() {
        return faultlist;
    }

    public String[] getPlcLIST() {
        return plcLIST;
    }

    public void setPlcLIST(String[] plcLIST) {
        this.plcLIST = plcLIST;
    }

    public String[] getClasslist() {
        return classlist;
    }

    public void setClasslist(String[] classlist) {
        this.classlist = classlist;
    }

    public String[] getFaultlist(String[] split) {
        return faultlist;
    }

    public void setFaultlist(String[] faultlist) {
        this.faultlist = faultlist;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getWebhook() {
        return webhook;
    }

    public void setWebhook(String webhook) {
        this.webhook = webhook;
    }

    public ArrayList<String> getFault1() {
        return fault1;
    }

    public void setFault1(ArrayList<String> fault1) {
        this.fault1 = fault1;
    }
    public void addFault1(String faul) {
        this.fault1.add(faul);
    }

    public ArrayList<String> getReset1() {
        return reset1;
    }

    public void setReset1(ArrayList<String> reset1) {
        this.reset1 = reset1;
    }
    public void addReset1(String faul) {
        this.reset1.add(faul);
    }

    public boolean isOnePass() {
        return onePass;
    }

    public void setOnePass(boolean onePass) {
        this.onePass = onePass;
    }

    public String getRepon() {
        return repon;
    }

    public void setRepon(String repon) {
        this.repon = repon;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public String getAlarmExceptionErr() {
        return alarmExceptionErr;
    }

    public void setAlarmExceptionErr(String alarmExceptionErr) {
        this.alarmExceptionErr = alarmExceptionErr;
    }

    public String getDingdingExceptionErr() {
        return dingdingExceptionErr;
    }

    public void setDingdingExceptionErr(String dingdingExceptionErr) {
        this.dingdingExceptionErr = dingdingExceptionErr;
    }

}
